package com.gxuwz.stats.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.stats.entity.CreativeAchievement;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CreativeAchievementMapper extends BaseMapper<CreativeAchievement> {


    /**
     * 二级管理员-自定义联表查询方法
     */
    IPage<CreativeAchievement> selectCreativeAchievementWithUser(@Param("page") IPage<CreativeAchievement> page,
                                              @Param("department") String department,
                                              @Param("username") String username,
                                              @Param("nameKeyword") String nameKeyword,
                                              @Param("categoryKeyword") String categoryKeyword,
                                              @Param("levelKeyword") String levelKeyword);

}
